package com.example.demospring.repository;

import com.example.demospring.entity.ConsultingAppointment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConsultingAppointmentRepository extends JpaRepository<ConsultingAppointment, Integer> {
    List<ConsultingAppointment> findByStatus(ConsultingAppointment.Status status);
}